﻿using System;
using System.IO;

namespace Mono.Cecil.Cil
{
	// Token: 0x02000156 RID: 342
	public class DefaultSymbolWriterProvider : ISymbolWriterProvider
	{
		// Token: 0x06000C50 RID: 3152 RVA: 0x00035F9C File Offset: 0x0003419C
		public ISymbolWriter GetSymbolWriter(ModuleDefinition module, string fileName)
		{
			ISymbolReader symbolReader = module.SymbolReader;
			bool flag = symbolReader == null;
			if (flag)
			{
				throw new InvalidOperationException();
			}
			bool flag2 = module.Image != null && module.Image.HasDebugTables();
			ISymbolWriter result;
			if (flag2)
			{
				result = null;
			}
			else
			{
				result = symbolReader.GetWriterProvider().GetSymbolWriter(module, fileName);
			}
			return result;
		}

		// Token: 0x06000C51 RID: 3153 RVA: 0x00003BD0 File Offset: 0x00001DD0
		public ISymbolWriter GetSymbolWriter(ModuleDefinition module, Stream symbolStream)
		{
			throw new NotSupportedException();
		}
	}
}
